﻿using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;

using WPF.ToDo.ViewModels;
using WPF.ToDo.Views;

namespace WPF.ToDo
{
    /// <summary>
    /// 待办事项模块
    /// </summary>
    public class ToDoModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
           
        }

        public void RegisterTypes(IContainerRegistry services)
        {
           services.RegisterForNavigation<ToDoView,ToDoViewModel>();
            //新建待办弹窗
            services.RegisterDialog<CreateToDoView, CreateToDoViewModel>();
        }
    }
}
